package org.example.demo.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.demo.entity.ApplicationData;

@Mapper
public interface ApplicationDataMapper {


    /**
     * 更新申请书审核数据
     * @param applicationData
     */
    void update(ApplicationData applicationData);

    /**
     * 插入申请书审核数据
     * @param applicationData
     */

    void insert(ApplicationData applicationData);

    /**
     * 根据申请书id删除申请书审核数据
     * @param applicationId
     */
    @Delete("delete from application_data where application_id = #{applicationId}")
    void deleteByApplicationId(Integer applicationId);
}


